<?php
/* @var $this SiteController */
/* @var $model ContactForm */
/* @var $form CActiveForm */

$this->pageTitle=Yii::app()->name . ' - Contact Us';
?>
<?php if(Yii::app()->user->hasFlash('contact')): ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr class="texteSimple">
          <td><a href="<?php echo Yii::app()->request->baseUrl; ?>" class="texteSimple">
          <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/icon-backpage.png" width="22" height="19" border="0" align="bottom">&nbsp;&nbsp;&nbsp;<?php echo Yii::t('main','home-return');?></a>
            <hr noshade width="100%" color="#CCCCCC" size="1" ></td>
        </tr>
        <tr>
          <td class="titresIndex"><p align="center"><?php echo Yii::t('main','contacts');?></p>
          <p class="ficheTypeLieu"><?php echo Yii::app()->user->getFlash('contact'); ?></p></td>
        </tr>
        <tr>
          <td align="center">&nbsp;</td>
        </tr>
      </table>
<?php else: ?>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'contact-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr class="texteSimple">
          <td><a href="<?php echo Yii::app()->request->baseUrl; ?>" class="texteSimple">
          <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/icon-backpage.png" width="22" height="19" border="0" align="bottom">&nbsp;&nbsp;&nbsp;<?php echo Yii::t('main','home-return');?></a>
            <hr noshade width="100%" color="#CCCCCC" size="1" ></td>
        </tr>
        <tr>
          <td class="titresIndex"><p align="center"><?php echo Yii::t('main','contacts');?></p>
          <p class="ficheTypeLieu"><?php echo Yii::t('main','contact-form-text');?></p></td>
        </tr>
        <tr>
          <td><table width="100%" border="0" cellpadding="0" cellspacing="5" id="tableFicheMini">
            <tr>
              <td width="129" align="right" valign="middle" class="texteSimple"><?php echo $form->labelEx($model,'name'); ?></td>
              <td width="377" align="left" valign="middle" class="texteSimple">            
				<?php echo $form->textField($model,'name',array('size'=>28)); ?>
				<?php echo $form->error($model,'name'); ?>               
                </td>
              <td width="62" align="center" valign="middle" class="ficheTypeLieu">&nbsp;</td>
              <td width="431" valign="middle" class="ficheZipCodeLieu"><?php echo Yii::t('main','contact-form-write-us');?></td>
            </tr>
            <tr>
              <td align="right" valign="middle" class="texteSimple"><?php echo $form->labelEx($model,'email'); ?></td>
              <td align="left" valign="middle" class="texteSimple">                   
				<?php echo $form->textField($model,'email',array('size'=>28)); ?>
				<?php echo $form->error($model,'email'); ?>(<?php echo Yii::t('main','contact-join-email');?>)</td>
              <td align="center" valign="middle" class="ficheTypeLieu">&nbsp;</td>
              <td valign="middle" class="ficheZipCodeLieu"><span class="ficheTypeLieu">Email : contact@comtessedorgandy.com</span></td>
            </tr>
            <tr>
              <td align="right" valign="middle" class="texteSimple"><?php echo $form->labelEx($model,'body'); ?></td>
              <td align="left" valign="middle" class="texteSimple">
             	<?php echo $form->textArea($model,'body',array('rows'=>8, 'cols'=>50)); ?>
				<?php echo $form->error($model,'body'); ?>
              </td>
              <td align="center" valign="middle" class="ficheTypeLieu">&nbsp;</td>
              <td valign="top" class="ficheZipCodeLieu"><p class="ficheTypeLieu"><?php echo Yii::t('main','contact-form-adress');?></p>
                <p class="ficheTypeLieu">COMTESSE D'ORGANDY<br>
                  153 avenue de Suffren<br>
              	75015 PARIS <br>
              	<br>
				<?php echo Yii::t('main','contact-form-tel');?> : +33 9 66 91 42 47<br>  
                <?php echo Yii::t('main','contact-form-mobile');?> : +33 6 21 72 45 27              
                </p></td>
            </tr>
            <tr>
  		        <td align="center">&nbsp;</td>
              <td align="right" valign="middle" class="texteSimple"><span class="ficheZipCodeLieu">              
              <?php echo CHtml::imageButton(Yii::app()->request->baseUrl.'/images/bt-send.png',array("width"=>"62", "height"=>"23", "border"=>"0")); ?>
              </span></td>
          		<td align="center">&nbsp;</td>
          		<td align="center">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
        <tr>
        </tr>
        <tr>
          <td align="center">&nbsp;</td>
        </tr>
      </table>	

	<div class="row buttons">
		
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->

<?php endif; ?>